﻿/* 8. Write a program that reads an integer number n from the console 
 * and prints all the numbers in the interval [1..n], each on a single line. */

using System;

public class SequenceFromOneToN
{
    public static void Main()
    {
        Console.Write("n = ");
        int n = int.Parse(Console.ReadLine());

        Console.WriteLine(1);
        if (n > 0)
            for (int i = 2; i <= n; i++)
                Console.WriteLine(i);
        else
            for (int i = 0; i >= n; i--)
                Console.WriteLine(i);
    }
}